﻿using LiteBlog.Controllers.Contracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace LiteBlog.Controllers.Tests
{
    [TestClass]
    public class SkinControllerTests : ControllerTests<ISkinController>
    {
        [TestMethod]
        public void BlogIsValid()
        {
            var actionResult = _controller.Blog();
            Assert.IsInstanceOfType(actionResult, typeof(FileContentResult));
        }

        [TestMethod]
        public void AdminIsValid()
        {
            var actionResult = _controller.Admin();
            Assert.IsInstanceOfType(actionResult, typeof(FileContentResult));
        }

        [TestMethod]
        public void ChangeWorks()
        {
            var actionResult = _controller.Change(It.IsAny<string>());
            Assert.IsInstanceOfType(actionResult, typeof(JsonResult));
        }
    }
}
